<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;

class Carts extends Model
{
    use HasFactory;

     protected $guarded=[];


    public function products()
    {
        return $this->belongsTo(Products::class);
    }

    public function sku()
    {
        return $this->belongsTo(ProcutSku::class,'products_id','id');
    }

    public function spec()
    {
        return $this->belongsTo(ProcutSku::class,'product_sku_id','id');
    }
}
